package com.tourism.dao;

import com.tourism.entity.CarouselPicture;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description 轮播图
 * @Author z
 * @Date 2021-04-25 8:54
 */
@Mapper
public interface CarouselPictureDao {
    /**
     * 新增轮播图
     *
     * @return
     */
    boolean addCarouselPicture(CarouselPicture carouselPicture);
    /**
     * 修改轮播图
     *
     * @return
     */
    boolean updateCarouselPicture(CarouselPicture carouselPicture);

    /**
     * 模糊搜索轮播图
     *
     * @param title
     * @return
     */
    List<CarouselPicture> getAllCarouselPicture(String title);


    /**
     * 根据id查询轮播图信息
     * @param id
     * @return
     */
    CarouselPicture getCarousePictureById(Long id);
    /**
     * 根据id删除轮播图
     *
     * @param id
     * @return
     */
    Boolean deleteCarousePictureById(Long id);
}
